package com.sicau.socialpracticesystem.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sicau.socialpracticesystem.entity.param.practicenews.PracticeNewsAddParam;
import com.sicau.socialpracticesystem.entity.param.practicenews.PracticeNewsQueryParam;
import com.sicau.socialpracticesystem.entity.param.practicenews.PracticeNewsUpdateParam;
import com.sicau.socialpracticesystem.entity.param.practicenews.PracticeNewsUpdateStateParam;
import com.sicau.socialpracticesystem.entity.po.PracticeNews;
import com.sicau.socialpracticesystem.entity.vo.practicenews.PracticeNewsVO;
import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 * 团队新闻稿表 服务类
 * </p>
 *
 * @author sxt && ttxxi
 * @since 2021-04-26
 */
public interface PracticeNewsService extends IService<PracticeNews> {

    /**
     * 新增新闻
     */
    void add(PracticeNewsAddParam practiceNewsAddParam);

    /**
     * 上传文件
     */
    String uploadFile(MultipartFile file);

    /**
     * 修改新闻
     */
    void update(PracticeNewsUpdateParam practiceNewsUpdateParam);

    /**
     * 根据条件分页查询
     */
    IPage<PracticeNewsVO> queryPage(PracticeNewsQueryParam practiceNewsQueryParam);

    /**
     * 修改新闻稿状态
     */
    void updateState(PracticeNewsUpdateStateParam updateStateParam);

    PracticeNewsVO queryVOById(Integer id);

}
